package com.example.demo1.week2.week2_3;

public class MyClass {
    int x;
    public MyClass(int y){
        System.out.println("构造MyClass");
        x = y;
    }

    public static void main(String[] args) {
        MyClass myObj = new MyClass(5);
        System.out.println(myObj.x);
    }
}
